<div ng-init="vm.init();refresh();">
  <div class="row x-page-header">
    <div class="col-md-12">
      <div class="x-page-title">MOCK数据模块</div>
      <div class="pull-right">
        <button class="btn btn-primary" type="button" ng-click="vm.edit(-1)">添加模块</button>
      </div>
    </div>
  </div>
  <div class="row x-page-body">
    <div class="col-md-12">
      <div class="row x-module-list">
        <div class="col-xs-6 col-md-4 col-lg-3" ng-repeat="module in vm.modules">
          <div class="thumbnail">
            <div class="caption">
              <h1><a ng-href="{{'#!/mock-module/' + module}}">{{module}}</a></h1>
              <p class="text-right">
                <button class="btn btn-success" ng-click="vm.edit($index)"><i class="fa fa-pencil"></i></button>
                <button class="btn btn-danger" ng-click="vm.remove($index)"><i class="fa fa-trash-o"></i></button>
              </p>
            </div>
          </div>
        </div>
      </div>
    </div>
  </div>
</div>
